CREATE TABLE [agency].[PortalCulture]
(
[PortalCultureId] [int] NOT NULL IDENTITY(1, 1),
[CultureId] [int] NOT NULL,
[PortalId] [int] NOT NULL,
[DisplayIndex] [int] NOT NULL,
[Default] [bit] NOT NULL,
[Active] [bit] NOT NULL,
[Deleted] [bit] NOT NULL,
[CreatedBy] [int] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[ModifiedBy] [int] NULL,
[ModifiedOn] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [agency].[PortalCulture] ADD CONSTRAINT [PK_PortalCulture] PRIMARY KEY CLUSTERED  ([PortalCultureId]) ON [PRIMARY]
GO
ALTER TABLE [agency].[PortalCulture] ADD CONSTRAINT [FK_PortalCulture_Culture] FOREIGN KEY ([CultureId]) REFERENCES [agency].[Culture] ([CultureId])
GO
ALTER TABLE [agency].[PortalCulture] ADD CONSTRAINT [FK_PortalCulture_Portal] FOREIGN KEY ([PortalId]) REFERENCES [agency].[Portal] ([PortalId])
GO
